package com.am.servlet;

import com.utils.AuthCodeUtils;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@Controller
public class AuthCodeController {
    @RequestMapping("/getAuthCode")
    @ResponseBody
    public void getAuthCode(HttpServletResponse response, HttpServletRequest request){
        AuthCodeUtils.getVerificationCode(response,request);
    }
}
